package org.tigris.scarab.model;

import java.io.Serializable;
import java.util.List;

public class IssueType implements Serializable {
    
    private Integer issueTypeId; //SCARAB_ISSUE_TYPE.ISSUE_TYPE_ID
    private String name; //SCARAB_ISSUE_TYPE.NAME
    private String description; //SCARAB_ISSUE_TYPE.DESCRIPTION
    private Integer parentId; //SCARAB_ISSUE_TYPE.PARENT_ID
    private Integer dedupe; //SCARAB_ISSUE_TYPE.DEDUPE
    private boolean deleted; //SCARAB_ISSUE_TYPE.DELETED
    private boolean locked; //SCARAB_ISSUE_TYPE.LOCKED
    private boolean isdefault; //SCARAB_ISSUE_TYPE.ISDEFAULT
    private List<TypeAttributeDecorator> m_attributes; //map n-n relation throught cross table SCARAB_R_ISSUETYPE_ATTRIBUTE
    private List<AttributeGroup> m_attributeGroups;

    public Integer getIssueTypeId() {
        return issueTypeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getDedupe() {
        return dedupe;
    }

    public void setDedupe(Integer dedupe) {
        this.dedupe = dedupe;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public boolean isLocked() {
        return locked;
    }

    public void setLocked(boolean locked) {
        this.locked = locked;
    }

    public boolean isDefault() {
        return isdefault;
    }

    public void setDefault(boolean isdefault) {
        this.isdefault = isdefault;
    }
    
    public List<TypeAttributeDecorator> getAttributes() {
        return m_attributes;
    }
    
    protected void setAttributes(List<TypeAttributeDecorator> attrs) {
        m_attributes = attrs;
    }
    
    public List<AttributeGroup> getAttributeGroups() {
        return m_attributeGroups;
    }

    protected void setAttributeGroups(List<AttributeGroup> attributeGroups) {
        m_attributeGroups = attributeGroups;
    }
}